<template>
	<view class="container">
		<image class="bg" src="../../static/ProjectResource/images/bg.jpg" mode=""></image>
		<image class="logo" src="../../static/ProjectResource/icons/logo.png" mode=""></image>

		<view class="middle">
			<view class="input-area">
				<image src="../../static/ProjectResource/images/user.png" mode=""></image>
				<input type="text" placeholder="用户名/手机号" />
			</view>

			<view style="height: 10px;" />

			<view class="input-area">
				<image src="../../static/ProjectResource/images/mima.png" mode=""></image>
				<input v-if="ishow == 1"  type="password" placeholder="密码" />
				<input v-else type="text" placeholder="密码" />
				<image v-if="ishow == 1"  @click="show" src="../../static/ProjectResource/images/eye-close.png" mode=""></image>
				<image v-else  @click="show" src="../../static/ProjectResource/images/eye.png" mode=""></image>
			</view>
			
			<view class="btn-login"><text>登&nbsp;&nbsp;&nbsp;&nbsp;录</text></view>

			<view class="account-area">
				<text>忘记密码?</text>
				<text>立即注册</text>
			</view>
		</view>

		<view class="bottom">
			<view>
				<view />
				<text>第三方直接登录</text>
				<view />
			</view>

			<view>
				<image src="../../static/ProjectResource/images/qq.jpg" mode=""></image>
				<image src="../../static/ProjectResource/images/wb.jpg" mode=""></image>
				<image src="../../static/ProjectResource/images/wx.jpg" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			ishow:1
		};
	},
	methods: {
		show(){
			if(this.ishow == 1){
				this.ishow = 0
			}else{
				this.ishow = 1
			}
		}
	}
};
</script>

<style lang="scss">
.container {
	display: flex;
	flex-direction: column;
	align-items: center;
	// border: 1px solid red;

	.bg {
		position: fixed;
		top: 0;
		right: 0;
		width: 100%;
		left: 0;
		bottom: 0;
		height: 100%;
		z-index: -1;
		filter: blur(5px);
	}

	.logo {
		width: 450rpx;
		height: 100rpx;
		border-radius: 4px;
		margin-top: 100px;
		background-color: white;
	}

	.middle {
		width: 600rpx;
		margin-top: 40px;

		// *{border: 1px red solid;}

		.input-area {
			background-color: white;
			border-radius: 4px;
			display: flex;
			align-items: center;
			padding: 6px;

			image:first-of-type {
				margin-right: 15px;
				width: 40rpx;
				height: 40rpx;
			}

			image:last-child {
				width: 40rpx;
				height: 40rpx;
				margin-left: auto;
			}
		}

		.btn-login {
			background-color: orange;
			border-radius: 4px;
			color: white;
			margin-top: 10px;
			text-align: center;
			padding: 5px 0;
		}

		.account-area {
			display: flex;
			margin-top: 10px;
			justify-content: space-between;

			text {
				text-decoration: underline;
				color: white;
				font-size: 0.8em;
			}
		}
	}

	.bottom {
		position: absolute;
		bottom: 20px;
		width: 600rpx;

		> view:first-child {
			display: flex;
			align-items: center;
			margin-bottom: 20px;
			// border: 1px solid red;

			> view {
				background-color: white;
				height: 1px;
				flex: 1;
			}

			> text {
				color: white;
				font-size: 0.8em;
				margin: 0 5px;
			}
		}

		> view:last-child {
			display: flex;
			justify-content: space-evenly;
			image {
				width: 100rpx;
				height: 100rpx;
				border-radius: 50%;
			}
		}
	}
}
</style>
